package com.company.andy.jiujiu.base;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

/**
 * Created by Andy on 2016/5/9.
 */
public class BaseActivity extends AppCompatActivity{

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        onCreateUI(savedInstanceState);

        onBindingListener(savedInstanceState);

        onBindingData(savedInstanceState);
    }

    /*
    * 视图创建
    * */
    protected void onCreateUI(@Nullable Bundle savedInstanceState){}

    /*
    * 绑定监听器
    * */
    protected void onBindingListener(@Nullable Bundle savedInstanceState){}

    /*
    *数据绑定
    * */
    protected void onBindingData(@Nullable Bundle savedInstanceState){}
}
